BWPS\SSU\Aws3\Aws\Retry\RateLimiter S

Total Complexity 27
Dependencies 0
Dependents 1
Total lines 136
Lines of code 99
Logical lines of code 63
Comment lines 4
Methods 13
Properties 17

Methods 13

Method Rating Maintainability Complexity Lines of code
__construct()
S
61 7 10
updateSendingRate()
S
55 3 21
refillTokenBucket()
S
61 3 13
acquireToken()
S
63 3 11
updateMeasuredRate()
S
62 2 11
time()
S
68 2 8
isEnabled()
S
82 1 3
getSendToken()
S
81 1 3
calculateTimeWindow()
S
77 1 3
cubicSuccess()
S
73 1 4
cubicThrottle()
S
80 1 3
enableTokenBucket()
S
81 1 3
updateTokenBucketRate()
S
70 1 6